package com.java.gps.domain;

/**
 * @author jl
 * Created on 2020/7/20
 * GPS信息对象
 */
public class GpsInfo {
    private String longitude;//经度  东正、西负
    private String latitude; //纬度  北正、南负
    private String speed;    //速度
    private String gpsStatus;//GPS状态 A=数据有效；V=数据无效
    private String gpsTime;//GPS时间
    private String course;//航向
    private String magneticDeclination; //磁偏角 东正，西负

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getSpeed() {
        return speed;
    }

    public void setSpeed(String speed) {
        this.speed = speed;
    }

    public String getGpsStatus() {
        return gpsStatus;
    }

    public void setGpsStatus(String gpsStatus) {
        this.gpsStatus = gpsStatus;
    }

    public String getGpsTime() {
        return gpsTime;
    }

    public void setGpsTime(String gpsTime) {
        this.gpsTime = gpsTime;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public String getMagneticDeclination() {
        return magneticDeclination;
    }

    public void setMagneticDeclination(String magneticDeclination) {
        this.magneticDeclination = magneticDeclination;
    }

    public GpsInfo(String longitude, String latitude, String speed, String gpsStatus, String gpsTime, String course, String magneticDeclination) {
        this.longitude = longitude;
        this.latitude = latitude;
        this.speed = speed;
        this.gpsStatus = gpsStatus;
        this.gpsTime = gpsTime;
        this.course = course;
        this.magneticDeclination = magneticDeclination;
    }

    @Override
    public String toString() {
        return "GpsInfo{" +
                "longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", speed='" + speed + '\'' +
                ", gpsStatus='" + gpsStatus + '\'' +
                ", gpsTime='" + gpsTime + '\'' +
                ", course='" + course + '\'' +
                ", magneticDeclination='" + magneticDeclination + '\'' +
                '}';
    }
}
